package com.example.demo.service.impl;

import com.example.demo.dao.ActivitiesAreaGoodDao;
import com.example.demo.dao.ActivityesareaDao;
import com.example.demo.pojo.ActivitiesAreaGood;
import com.example.demo.service.ActivitiesAreaGoodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

//活动商品表
import java.util.List;
@Service
public class ActivitiesAreaGoodServiceImpl implements ActivitiesAreaGoodService {
    @Autowired
    private ActivitiesAreaGoodDao activitiesAreaGoodDao;
    @Override
    public int deleteByPrimaryKey(Integer id) {
        return activitiesAreaGoodDao.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(ActivitiesAreaGood record) {
        return activitiesAreaGoodDao.insert(record);
    }

    @Override
    public int insertSelective(ActivitiesAreaGood record) {
        return activitiesAreaGoodDao.insertSelective(record);
    }

    @Override
    public ActivitiesAreaGood selectByPrimaryKey(Integer id) {
        return activitiesAreaGoodDao.selectByPrimaryKey(id);
    }

    @Override
    public List<ActivitiesAreaGood> selectAll(int repertoryId) {
        return activitiesAreaGoodDao.selectAll(repertoryId);
    }

    @Override
    public int updateByPrimaryKeySelective(ActivitiesAreaGood record) {
        return activitiesAreaGoodDao.updateByPrimaryKey(record);
    }

    @Override
    public int updateByPrimaryKey(ActivitiesAreaGood record) {
        return activitiesAreaGoodDao.updateByPrimaryKey(record);
    }

    @Override
    public List<ActivitiesAreaGood> selectByrepertoryid(Integer repertoryid, Integer activityesareaid) {
        return activitiesAreaGoodDao.selectByrepertoryid(repertoryid,activityesareaid);
    }
}
